class Solution:
    def twoSum(self, nums, target):
        length = len(nums)
        for i in range(length):
            one = nums[i]
            two = target-one
            for j in range(length):
                if nums[j] == two and i != j:
                    return [i,j]
        return [0,0]


a = Solution()

result = a.twoSum([3,3,3], 6)
print(result)